package com.winit.cloudlink.mgmt.recovery;

import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties(RecoveryProperties.class)
public class RecoveryAutoConfigure {

    @Bean
    public MessageBackupTaskManager messageBackupTaskManager() {
        return new MessageBackupTaskManagerImpl();
    }

    @Bean
    public MessageRestoreTaskManager messageRestoreTaskManager() {
        return new MessageRestoreTaskManagerImpl();
    }

}
